package o;

import android.util.LongSparseArray;
import java.util.concurrent.atomic.AtomicLong;

public class bkv {
    private static final bkv ˊ = new bkv();
    private final AtomicLong ˎ = new AtomicLong(0);
    private final LongSparseArray<Object> ॱ = new LongSparseArray();

    private bkv() {
    }

    public static bkv ˎ() {
        return ˊ;
    }

    public long ॱ(Object obj) {
        return ˏ(this.ˎ.incrementAndGet(), obj);
    }

    private long ˏ(long j, Object obj) {
        if (obj == null) {
            throw new NullPointerException("object must not be null.");
        }
        this.ॱ.put(j, obj);
        return j;
    }

    public <T> T ˊ(long j) {
        return this.ॱ.get(j);
    }

    public void ॱ(long j) {
        this.ॱ.remove(j);
    }
}
